Other Models
- HOWEVER, know that other models exist, and modeling with another
regression types follows this general sort of principle
- Example, logistic regression:
- lm() replaced with glm()
- Add an extra argument at the end to specify distribution as binomial.
logistic_model <- glm(y_variable ~ x_variable, family = "binomial")
- Don't worry about this if you don't know what logistic regression is, but if you
were interested in other types of models, glm() pretty much has you covered
- Use RDocumentation to learn more